package com.druid.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "安全角色请求参数实体对象")
public class SecutityRoleParam {

    @ApiModelProperty(value = "id")
    @NotNull(groups = {RequestParamInterfaceGroup.DeleteGroup.class})
    private Integer id;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(groups = RequestParamInterfaceGroup.InsertGroup.class)
    private String name;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;
}
